package com.open.capacity.salary.dto;

import lombok.Data;

import java.util.List;

@Data
public class GridHeadDataDto2 {

    public List<ColData> colData;

    @Data
    public static class ColData {
        private ColData(Builder builder) {
            this.label = builder.label;
            this.name = builder.name;
            this.width = builder.width;
            this.align = builder.align;
            this.hidden=builder.hidden;
        }

        private String label;
        private String name;
        private Integer width;
        private String align;
        private Boolean hidden;

        public static class Builder {
            private String label;

            private String name;

            private Integer width;

            private String align;

            private Boolean hidden;

            public Builder label(String label) {
                this.label = label;
                return this;
            }

            public Builder name(String name) {
                this.name = name;
                return this;
            }

            public Builder width(Integer width) {
                this.width = width;
                return this;
            }

            public Builder align(String align) {
                this.align = align;
                return this;
            }
            public Builder hidden(Boolean hidden) {
                this.hidden = hidden;
                return this;
            }

            public ColData build() {
                return new ColData(this);
            }
        }
    }


}
